home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / revtex / revtex.sty < prev    next >
Text File  |  1992-10-26  |  7KB  |  214 lines

  1. %%% ======================================================================
  2. %%%  @LaTeX-style-file{
  3. %%%     filename        = "revtex.sty",
  4. %%%     version         = "3.0",
  5. %%%     date            = "October 27, 1992",
  6. %%%     ISO-date        = "1992.10.27",
  7. %%%     time            = "15:41:54.18 EST",
  8. %%%     author          = "American Physical Society",
  9. %%%     contact         = "Christopher B. Hamlin",
  10. %%%     address         = "APS Publications Liaison Office
  11. %%%                        500 Sunnyside Blvd.
  12. %%%                        Woodbury, NY 11797",
  13. %%%     telephone       = "(516) 576-2390",
  14. %%%     FAX             = "(516) 349-7817",
  15. %%%     email           = "mis@aps.org (Internet)",
  16. %%%     supported       = "yes",
  17. %%%     archived        = "pinet.aip.org/pub/revtex,
  18. %%%                        Niord.SHSU.edu:[FILESERV.REVTEX]",
  19. %%%     keywords        = "REVTeX, version 3.0, REVTeX main style file,
  20. %%%                        American Physical Society",
  21. %%%     codetable       = "ISO/ASCII",
  22. %%%     checksum        = "53152 213 435 6678",
  23. %%%     docstring       = "This is the main style file for REVTeX 3.0.
  24. %%%
  25. %%%                        The checksum field above contains a CRC-16
  26. %%%                        checksum as the first value, followed by the
  27. %%%                        equivalent of the standard UNIX wc (word
  28. %%%                        count) utility output of lines, words, and
  29. %%%                        characters.  This is produced by Robert
  30. %%%                        Solovay's checksum utility."
  31. %%% }
  32. %%% ======================================================================
  33. % ****** Start of file revtex.sty ******
  34. %
  35. %
  36. %   This file is part of the APS files in the REVTeX 3.0 distribution.
  37. %   Version 3.0 of REVTeX, November 10, 1992.
  38. %
  39. %   Copyright (c) 1992 The American Physical Society.
  40. %
  41. %   See the REVTeX 3.0 README file for restrictions and more information.
  42. %
  43. \typeout{Filename: revtex.sty, v3.0 <27 October 92>}
  44.  
  45. \def\@revmess#1#2{\typeout{REVTeX #1: #2}}
  46.  
  47. \@namedef{ds@11pt}{\def\@ptsize{1}} %
  48. \@namedef{ds@12pt}{\def\@ptsize{2}} %
  49. \def\@ptsize{0} %
  50.  
  51. \def\ds@preprint{\global\preprintstytrue \def\@ptsize{2}}
  52. \let\ds@manuscript\ds@preprint
  53. \newif\ifpreprintsty \global\preprintstyfalse
  54.  
  55. \@namedef{ds@aps}{\def\@society{aps}}
  56. \@namedef{ds@osa}{\def\@society{osa}}
  57.  
  58. \def\ds@twoside{\@twosidetrue %
  59. \@mparswitchtrue} %
  60.  
  61. \def\ds@draft{\overfullrule 5\p@} %
  62.  
  63. \newif\if@amsfonts  \@amsfontsfalse
  64. \def\ds@amsfonts{\@amsfontstrue}
  65.  
  66. \newif\if@amssymbols  \@amssymbolsfalse
  67. \def\ds@amssymb{\@amssymbolstrue}
  68.  
  69. \newif\if@titlepage  \@titlepagefalse
  70. \def\ds@titlepage{\@titlepagefalse}
  71.  
  72. \def\ds@twocolumn{\@twocolumntrue}
  73.  
  74. \newif\if@tightenlines \@tightenlinesfalse
  75. \def\ds@tighten{\@tightenlinestrue}
  76.  
  77. \newif\if@floats \@floatsfalse
  78. \def\ds@floats{\@floatstrue}
  79.  
  80. \newif\ifsecnumbers \global\secnumbersfalse
  81. \def\ds@eqsecnum{\global\secnumberstrue}
  82.  
  83. \def\@journal{pra}
  84. \def\ds@pra{\def\@journal{pra}}
  85. \def\ds@prb{\def\@journal{prb}}
  86. \def\ds@prc{\def\@journal{prc}}
  87. \def\ds@prd{\def\@journal{prd}}
  88. \def\ds@pre{\def\@journal{pre}}
  89. \def\ds@prl{\def\@journal{prl}}
  90. \def\ds@josaa{\def\@journal{josaa}}
  91. \def\ds@josab{\def\@journal{josab}}
  92. \def\ds@aplop{\def\@journal{aplop}}
  93.  
  94. \ifpreprintsty
  95. \def\openone{\leavevmode\hbox{\small1\kern-3.8pt\normalsize1}}%
  96. \else
  97. \def\openone{\leavevmode\hbox{\small1\kern-3.3pt\normalsize1}}%
  98. \fi
  99.  
  100. \def\case{\protect\@case}
  101.  
  102. \def\@case#1#2{%
  103. \def\@tempa{#2}\def\@tempb{/}%
  104. \ifx\@tempa\@tempb %
  105. \def\@tempa{\@@case{#1}}%
  106. \else %
  107. \def\@tempa{\@@case{#1}{#2}}%
  108. \fi
  109. \@tempa
  110. }
  111.  
  112. \def\@@case#1#2{{\textstyle{#1\over#2}}}
  113.  
  114. \def\overlay#1#2{\ifmmode%
  115. \setbox0=\hbox{$#1$}%
  116. \setbox1=\hbox to\wd0{\hss$#2$\hss}\else%
  117. \setbox0=\hbox{#1}%
  118. \setbox1=\hbox to\wd0{\hss#2\hss}\fi%
  119. #1\hskip-\wd0\box1 }
  120.  
  121. \def\pmb#1{\leavevmode\setbox0=\hbox{#1}%
  122. \kern-.02em\copy0\kern-\wd0
  123. \kern.04em\copy0\kern-\wd0
  124. \kern-.02em\raise.04em\box0 }
  125.  
  126. \def\Bigglb#1{\leavevmode\hbox{\pmb{$\Biggl#1$}}}
  127. \def\Biglb#1{\leavevmode\hbox{\pmb{$\Bigl#1$}}}
  128. \def\bigglb#1{\leavevmode\hbox{\pmb{$\biggl#1$}}}
  129. \def\biglb#1{\leavevmode\hbox{\pmb{$\bigl#1$}}}
  130. \def\Biggrb#1{\leavevmode\hbox{\pmb{$\Biggr#1$}}}
  131. \def\Bigrb#1{\leavevmode\hbox{\pmb{$\Bigr#1$}}}
  132. \def\biggrb#1{\leavevmode\hbox{\pmb{$\biggr#1$}}}
  133. \def\bigrb#1{\leavevmode\hbox{\pmb{$\bigr#1$}}}
  134.  
  135. \def\lesssim{\mathrel{\mathpalette\vereq<}}
  136. \def\vereq#1#2{\lower3pt\vbox{\baselineskip1.5pt \lineskip1.5pt
  137. \ialign{$\m@th#1\hfill##\hfil$\crcr#2\crcr\sim\crcr}}}
  138.  
  139. \def\gtrsim{\mathrel{\mathpalette\vereq>}}
  140.  
  141. \def\alt{\lesssim}
  142. \def\agt{\gtrsim}
  143.  
  144. \def\tensor#1{\protect\@ontopof{#1}{\leftrightarrow}{1.15}\mathord{\box2}}
  145. \def\overstar#1{\protect\@ontopof{#1}{\ast}{1.15}\mathord{\box2}}
  146. \def\overdots#1{\protect\@ontopof{#1}{\cdots}{1.0}\mathord{\box2}}
  147. \def\overcirc#1{\protect\@ontopof{#1}{\circ}{1.2}\mathord{\box2}}
  148. \def\loarrow#1{\protect\@ontopof{#1}{\leftarrow}{1.15}\mathord{\box2}}
  149. \def\roarrow#1{\protect\@ontopof{#1}{\rightarrow}{1.15}\mathord{\box2}}
  150.  
  151. \def\@ontopof#1#2#3{%
  152. {\mathchoice
  153. {\@@ontopof{#1}{#2}{#3}\displaystyle\scriptstyle}%
  154. {\@@ontopof{#1}{#2}{#3}\textstyle\scriptstyle}%
  155. {\@@ontopof{#1}{#2}{#3}\scriptstyle\scriptscriptstyle}%
  156. {\@@ontopof{#1}{#2}{#3}\scriptscriptstyle\scriptscriptstyle}%
  157. }%
  158. }
  159.  
  160. \def\@@ontopof#1#2#3#4#5{%
  161. \setbox0=\hbox{$#4#1$}%
  162. \setbox1=\hbox{$#5#2$}%
  163. \setbox2=\hbox{}\ht2=\ht0 \dp2=\dp0 %
  164. \ifdim\wd0>\wd1 %
  165. \setbox1=\hbox to\wd0{\hss\box1\hss}%
  166. \mathord{\rlap{\raise#3\ht0\box1}\box0}%
  167. \else   %
  168. \setbox1=\hbox to.9\wd1{\hss\box1\hss}%
  169. \setbox0=\hbox to\wd1{\hss$#4\relax#1$\hss}%
  170. \mathord{\rlap{\copy0}\raise#3\ht0\box1}%
  171. \fi
  172. }%
  173.  
  174. \def\lambdabar{\protect\@lambdabar}
  175. \def\@lambdabar{%
  176. \relax
  177. \bgroup
  178. \def\@tempa{\hbox{\raise.73\ht0
  179. \hbox to0pt{\kern.25\wd0\vrule width.5\wd0
  180. height.1pt depth.1pt\hss}\box0}}%
  181. \mathchoice{\setbox0\hbox{$\displaystyle\lambda$}\@tempa}%
  182. {\setbox0\hbox{$\textstyle\lambda$}\@tempa}%
  183. {\setbox0\hbox{$\scriptstyle\lambda$}\@tempa}%
  184. {\setbox0\hbox{$\scriptscriptstyle\lambda$}\@tempa}%
  185. \egroup
  186. }
  187.  
  188. \def\corresponds{{\lower.2ex\hbox{=}}{\rm\kern-.75em^\triangle}}
  189. \def\succsim{\succ\kern-.9em_\sim\kern.3em}
  190. \def\precsim{\prec\kern-1em_\sim\kern.3em}
  191. \def\slantfrac#1#2{\kern1em^{#1}\kern-.3em/\kern-.1em_{#2}}
  192.  
  193. \@options
  194.  
  195. \let\@tempa\relax
  196. \ifx\@society\undefined
  197. \def\@tempa{%
  198. \typeout{You need to use one of the society style options!}
  199. \typeout{The valid options are aps or osa. That is, use either
  200. aps or osa in}
  201. \typeout{square brackets after the \string\documentstyle\space
  202. command and before the curly brackets:}
  203. \typeout{\space\space\space\string\documentstyle[aps]{revtex} or
  204. \string\documentstyle[osa]{revtex}}\typeout{}\@@end
  205. }
  206. \fi
  207. \@tempa
  208.  
  209. \input \@society.sty
  210.  
  211. \endinput
  212. %
  213. % ****** End of file revtex.sty ******
  214.